const api = {
    Hot: "rest/movie/hot", // 热门电影
    News: "rest/movie/new", // 新添加
    Rate: "rest/movie/rate", // 评分最多的
    Info: "rest/movie/info", // 单个电影信息 /info/{id}

    InfoRec: "rest/movie/infoRec", // 根据电影信息推荐 /rest/movie/infoRec/1?num=2
    InfoRecBC: "rest/movie/infoRecBC", // 内容相似行推荐 /rest/movie/infoRecBC/1?num=2

    Wish: "rest/movie/wish", // 根据用户特征协同过滤  rest/movie/wish?username=&num=

    // 体裁|类别
    genresList: "/rest/movie/genresList", // 电影体裁列表 /rest/movie/genresList
    genres: "/rest/movie/genres", // 获取某个类别电影 /rest/movie/genres?category=&num=


    // tag相关
    Tags: "rest/movie/mytag", // rest/movie/mytag/{mid}
    TagMid: "rest/movie/tag", // rest/movie/tag/{mid}

    // user相关
    Login: '/rest/users/login',
    Register: '/rest/users/register',
    getUser: '/rest/users/get',
    pref: '/rest/users/pref' // /rest/users/pref?username=cccc&genres=War,Music

}

const apiCN = {
    WishCN: "/rest/movie_CN/wish", // 根据用户特征协同过滤  /rest/movie_CN/wish?username=&num=
    sameCN: "/rest/movie_CN/same", // 根据电影特征协同过滤  /rest/movie_CN/same?username=&num=
    info: "/rest/movie_CN/info"
}

export {
    api,
    apiCN
}